import { createProject } from './cli/create';
import { program } from 'commander';

program.version(require('../package.json').version)
  .option('-c, --config <path>', 'set config path')
  .option('-d, --dev', 'set development environment')
  .option('-h, --help', 'show help');

program.command('create <name>')
  .action(name => {
    // 创建项目
    createProject(name);
  });

program.parse(process.argv); // 解析命令行参数
